package gwtadmin.client.wsdltree;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class WtService extends Wt implements IsSerializable {
	
	public WtService() {
		super();
	}

	public WtService(QName qname, String url, WtPort[] ports) {
		super(qname);
		this.url = url;
		this.ports = ports;
	}
	
	public void addPolicy(WtPolicy policy) {
		policies.add(policy);
	}
	
	public String toString() {
		String str = "";
		for (WtPort prto : ports) {
			str += prto + "\n";
		}
		return str;
	}
	
//	public QName Wt.qname	= null;
	public String url		= null;
	public WtPort[] ports	= null;
	
	public List<WtPolicy> policies = new UniqList<WtPolicy>();
}
